import TreeSelect from "@/components/common/TreeSelect";
import NavBar from "@/components/menus/NavBar";
import { View } from "@tarojs/components";
import Taro from "@tarojs/taro";
import { useState } from "react";
import { ArrowLeft } from "@taroify/icons";
import { RenderTitle } from "@/utils/render";

export default () => {
  const [value, setValue] = useState("");
  function select(e) {
    setValue(e);
  }
  function handle() {}
  return (
    <NavBar
      left={
        <View className="flex items-center">
          <ArrowLeft onClick={() => Taro.navigateBack()} size={24} />
          <View>标签管理</View>
        </View>
      }
      title={RenderTitle({ handle, menus: ["帖子", "标签", "话题"] })}
    >
      <TreeSelect value={value} add />
    </NavBar>
  );
};
